home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1994 November / Cd Ware (Nro. 2) - Epimundo.iso / DOS / PG / CLIP.ZIP / CLIPBRD.H < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-06  |  1.6 KB  |  56 lines

  1. /* Function prototypes for CLIPBRD.ASM file.*/
  2.  
  3. #ifndef __CLIPBRD
  4. #define __CLIPBRD
  5.  
  6. /* Constants of data types to use with ClipBrd assembly module. */
  7.  
  8. #define WINTXT    1
  9. #define BITMAP    2
  10. #define METAF    3
  11. #define SYLK    4
  12. #define DIF        5
  13. #define TIFF    6
  14. #define OEM        7
  15. #define DSPTXT    81h
  16. #define DSPBIT    82h
  17.  
  18. /* WinOldApp - Sees if the Clipboard is supported */
  19. /* returns 1700h if NOT , AH Minor version, AL Major Version*/
  20. int WinOldApp( void ); /*returns 1700h if fail */
  21. /*Opens clip returns 0 if fail NON-Zero if OK */
  22. int OpenClipBoard( void ); /*returns 0 or non 0*/
  23. /*Clears Clip returns like Open*/
  24. int ClearClipBoard( void ); /*returns 0 or non 0*/
  25.  
  26. /*
  27. ;Format codes:
  28. ;    1    text Windows
  29. ;    2    Bitmap
  30. ;    3    Mteafile
  31. ;    4    SYLK    Excel Format
  32. ;    5    DIF    Standard data interchange
  33. ;    6    TIFF    Tagged image File(graphics)
  34. ;    7    OEM    Text(Using the PC text)
  35. ;    81H    DSP Text TEXT
  36. ;    82H    DSP Bitmap
  37. ;
  38. */
  39. /* These functions need the above formatting const*/
  40. /*Copy pass in fomat code, length of data, pointer to data */
  41. int CopyToClip( int, unsigned long, void far* ); /*returns 0 or non 0*/
  42.  
  43. /*QueryClip-Pass in format code*/
  44. long QueryClip( int );/*returns size in bytes*/
  45. /* Pass in format code , buffer*/
  46. int PasteFrmClip(int,void far* ); /*returns 0 or non 0*/
  47. /* End of functions that need format codes as first parramter*/
  48. /**************************************************************************/
  49.  
  50. /* This just closes clip*/
  51. int CloseClip( void ); /*returns 0 or non 0*/
  52.  
  53. /* Pass in required size*/
  54. long CompactClip( int );/*returns largest available block*/
  55.  
  56. #endif /* End __CLIPBRD Re-Compile Guard.*/